package org.raymond.iworks.repository.entity;

import jakarta.persistence.*;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.GenericGenerator;

/**
 * @author raymond
 * @version V1.0
 * @Description: TODO
 */
@Data
@Builder
@EqualsAndHashCode(onlyExplicitlyIncluded=true, callSuper = false)
@Entity
@Table(name="t_sys_role")
public class TSysRole extends AbstractEntity {
    @EqualsAndHashCode.Include
    @Id
    @GenericGenerator(name = ID_GENERATOR_NAME, strategy = ID_GENERATOR)
    @GeneratedValue(generator = ID_GENERATOR_NAME)
    private Long id;
    @Column(name="parent_id")
    private Long parentId;
    @Column(name="name")
    private String name;
    @Column(name="remark")
    private String remark;
    /**
     * 状态, stop, normal
     */
    @Column(name="state")
    private String state;
}
